<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>留言反馈</title>
<link href="style/aa.css" rel="stylesheet" type="text/css" />
<link href="style/liuyan.css" rel="stylesheet" type="text/css" />
<link href="style/logo.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.banquan {
	font-family: "宋体";
	font-size: 16px;
	background-color: #E8F7CF;
}
.bg {
	background-image: url(img/bbg.jpg);
	margin:0;
	padding:0;
	text-align:left;
}

</style>

<style type="text/css">
a:link {
	color: #000000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}

</style>
</head>

<body>
<div align="center" style="margin:0 auto">
<div>

  <ul class="menu">
    <li><a href="denglu.php" style="color:#FFF">会员登录</a></li>
    <li><a href="zhuce.php" style="color:#FFF">免费注册</a></li>
    <li><img src="img/1.jpg" width="180" height="19px" /></li>
    <li><a href="food.php" style="color:#FFF">首页</a></li>
    <li class="has-submenu">推荐食品
      <ul>
        <li><a href="food.php?style=水果" style="color:#fff">新鲜水果</a></li>
        <li><a href="food.php?style=蔬菜" style="color:#FFF">营养蔬菜</a></li>
      </ul>
    </li>
    <li><a href="zixun.php" style="color:#FFF">食品咨询</a></li>
    <li><a href="liuyan.php" style="color:#FFF">留言反馈</a></li>
	<li><a style="color:#FFF" href="guanyu.php">关于我们</a></li>
  </ul>
</div>
<table width="1000" border="0" align="center" class="bg">

  <tr>
    <td height="706" valign="top"><table width="100%" border="0">
      <tr>
        <td height="127" align="center" valign="middle"><div class="text1">
                <label for="textfield2"></label>
                <input type="submit" name="button" id="button" value="畅所欲言吧" class="button"></div></td>
      </tr>
    </table>
      <table width="100%" border="0">
        <tr>
          <td width="21%" height="78"><a href="food.php">首页</a>&gt;<a href="liuyan.php">留言反馈</a></td>
          <td width="79%">&nbsp;</td>
        </tr>
      </table>
       <?php
include("conn/conn.php");
session_start();
$sql="select * from tb_liu where state=2";
$result=mysqli_query($link,$sql);
if(mysqli_num_rows($result)>0){
	while ($row=mysqli_fetch_assoc ($result)) {
		?>
		<table width="100%" border="0" class="bk">
		<tr>
    <td width="20%" height="73" valign="middle"><img src="img/rwu.png" width="46" height="62" /><span class="hong">会员：<?=$row['name']?></span></td>
    <td width="24%" valign="bottom" style="color:#CCC; font-size:14px;"><?=$row['time']?></td>
    <td width="55%" valign="bottom" style="color:#CCC; font-size:14px;">&nbsp;</td>
        </tr>
  <tr>
    <td height="186" colspan="2" valign="top"><span class="zongziti">用户留言：</span><?=$row['liu']?></td>
    <td height="186" valign="top">&nbsp;</td>
    <td width="1%" height="186" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td height="30" valign="top"><span class="zongziti">回复：</span>暂无回复</td>
    <td height="30" colspan="2" valign="top">&nbsp;</td>
    <td height="30" valign="top">&nbsp;</td>
  </tr>
     
    </table>
    <?php
}
}

	?>
    <!--显示评论区-->
    
  
    
    
    
    
    
    
    
    <!--上下页-->
    
       <?php

$sql_all="select * from tb_liu";		
$result_all= mysqli_query($link,$sql_all);
$count=mysqli_num_rows($result_all);
if($count>1){
	?>
    <table width="300" align="center" height="100">
    <tr>
	<?php
$to_pages=ceil($count/8);
echo"<td class='kaiti'><a href='liuyan.php'>首页</a></td>";
if($page<=1){
    echo "<td class='kaiti'><a href='liuyan.php?p=1'>第一页</a></td>";
    }
	else{
    echo "<td class='kaiti'><a href='liuyan.php?p=".($page-1)."'>上一页</a></td>";
}
if ($page<$to_pages){
    echo "<td class='kaiti'><a href='liuyan.php?p=".($page+1)."'>下一页</a></td>";
 
 
}else{
    echo "<td class='kaiti'><a href='liuyan.php?p=".($to_pages)."'>最后一页</a></td>";
}
}

?>
</tr>
  </table>
     <form action="admin/pl_add.php" method="post">   
    <table width="100%" border="0">
      <tr>
        <td height="65" align="center"><textarea name="vpl" id="vpl" cols="" rows="">&nbsp;</textarea></td>
      </tr>
      <tr>
        <td height="65" align="center"><input name="提交" type="submit" value="我要留言" class="button2"/></td>
      </tr>
    </table>
    </form>
    </td>
  </tr>
  </table>
  

<table width="100%" border="0" height="300">
<tr>
<td height="100px;"></td>
</tr>
  <tr>
    <td align="center" class="banquan"><p>公司名称：天宝绿色食品公司 电话：15565478543 传真：025-12345678 邮</p>
      <p>&nbsp;</p>
      <p>编：426100 版权归天宝绿色食品公司所有 粤ICP备 0703332572号</p></td>
  </tr>
</table>
</div>
</body>
</html>